package youbff.cloud.system.config;import org.mybatis.spring.mapper.MapperScannerConfigurer;import org.springframework.boot.autoconfigure.AutoConfigureAfter;import org.springframework.context.annotation.Bean;import org.springframework.context.annotation.Configuration;/** * mybatis 扫描配置 * @author lixuefeng * @email youbff@163.com * @time 2017年11月28日 下午2:21:47 */@Configuration@AutoConfigureAfter(DruidConfig.class)public class MyBatisMapperScannerConfig {    @Bean    public MapperScannerConfigurer mapperScannerConfigurer(){        MapperScannerConfigurer mapperScannerConfigurer = new MapperScannerConfigurer();        mapperScannerConfigurer.setBasePackage("youbff.cloud.system.*.dao");        mapperScannerConfigurer.setSqlSessionFactoryBeanName("sqlSessionFactoryBean");        return mapperScannerConfigurer;    }}